﻿@model VideoCache.Server.MVCWeb.Areas.Admin.Models.LoginModel
@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
    // 首页不允许被其他框架页加载
    if (top.location != self.location) top.location = self.location;
</script>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>登陆</title>
<link href="/content/tenui/base.css" rel="stylesheet" type="text/css" />
<script src="/Scripts/jquery-1.8.0.min.js" type="text/javascript"></script>
<script src="/Scripts/common.js" type="text/javascript"></script>
<script src="/Scripts/jquery.validate.min.js" type="text/javascript"></script>
<script src="/Scripts/jquery.validate.unobtrusive.min.js" type="text/javascript"></script>
<style type="text/css">
body { margin: 0; background-color: #f5f5f5; }
.login { width: 960px; margin: 40px auto 0 auto; border: solid 1px #ddd; background-color: #fff; }
.login table { width: 500px; margin-left:100px; margin-top:40px; margin-bottom:40px; }
.login_btn { border:solid 1px #f00; background-color:#f60; font-size:14px; height:30px; line-height:30px; color:#fff; font-weight:bold; min-width:80px; }
</style>
</head>
<body>
<div class="login">
@using (Html.BeginForm())
{
<h1>登陆到管理中心</h1>
<table class="table-form">
<tr>
    <td class="label">@Html.LabelFor(model => model.UserName)</td>
    <td>
        @Html.EditorFor(model => model.UserName)
        @Html.ValidationMessageFor(model => model.UserName)
    </td>
</tr>
<tr>
    <td class="label">@Html.LabelFor(model => model.Password)</td>
    <td>
        @Html.EditorFor(model => model.Password)
        @Html.ValidationMessageFor(model => model.Password)
    </td>
</tr>
<tr>
    <td class="label">@Html.LabelFor(model => model.VerifyCode)</td>
    <td>
        @Html.EditorFor(model => model.VerifyCode)
        @Html.ValidationMessageFor(model => model.VerifyCode)
    </td>
</tr>
<tr>
    <td class="label"></td>
    <td>
        @Html.VerifyCode()
    </td>
</tr>
<tr>
    <td class="label"></td>
    <td>
        <button type="submit" class="login_btn">登 陆</button>
    </td>
</tr>
<tr>
    <td class="label"></td>
    <td>
        @Html.ValidationMessage("Error")
    </td>
</tr>
</table>
}

</div>
</body>
</html>